package cn.liulin.spring_boot_study.config;

import cn.liulin.spring_boot_study.self.UseSelf;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * cn.liulin.spring_boot_study.config$
 *
 * @author ll
 * @date 2021-10-22 15:15:48
 **/
@Configuration
@ComponentScan("cn.liulin.spring_boot_study.self")
public class SelfConfig {

//    @Bean(name = "useSelf", initMethod = "initMethod", destroyMethod = "destroyMethod")
    public UseSelf getUseSelf() {
        UseSelf useSelf = new UseSelf();
        useSelf.setMsg("这");
        return useSelf;
    }
}
